// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.content.Context;
import android.view.*;
import android.widget.*;
import com.nnee.p_fk.cls_l;
import java.util.List;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            SetSkinActivity

public class cls_dm extends ArrayAdapter
{

    public cls_dm(cls_SetSkinActivity setskinactivity, Context context, int i, List list)
    {super(context, i, list);
        c = setskinactivity;
        
        b = context;
        a = LayoutInflater.from(context);
    }

    private void a(View view, cls_l l1)
    {
        if(view != null && l1 != null) {
        	 ImageView imageview1;
             ImageView imageview = (ImageView)view.findViewById(0x7f0d0029);
             TextView textview = (TextView)view.findViewById(0x7f0d002a);
             imageview1 = (ImageView)view.findViewById(0x7f0d002b);
             imageview.setImageDrawable(l1.e());
             textview.setText(l1.c());
             if(l1.f())
            	 {
            	 if(l1.g())
                     imageview1.setImageResource(0x7f020024);
                 else
                     imageview1.setImageResource(0x7f020023);
            	 }
             else
             {
             imageview1.setImageResource(0x7f020142);
             }
        }
        
        view.setTag(l1);
 
    }

    public View getView(int i, View view, ViewGroup viewgroup)
    {
        if(i <= -2 + getCount())
        {
            cls_l l1 = (cls_l)getItem(i);
            if(view == null || view.findViewById(0x7f0d0029) == null)
                view = a.inflate(0x7f03000d, null);
            a(view, l1);
        } else
        {
            if(view == null || view.findViewById(0x7f0d0029) != null)
                view = a.inflate(0x7f03000e, null);
            view.setTag(null);
        }
        return view;
    }

    LayoutInflater a;
    Context b;
    final cls_SetSkinActivity c;
}
